home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / databases.foxpro.general < prev    next >
Encoding:
Internet Message Format  |  1994-05-11  |  19.1 KB

  1. Subject: FoxPro Databases FAQ #1: You say you want a revolution?
  2. Newsgroups: comp.databases.xbase.fox,comp.answers,news.answers
  3. From: kcochran@nyx10.cs.du.edu (Keith "Justified And Ancient" Cochran)
  4. Date: 9 May 1994 18:35:57 -0600
  5.  
  6. Archive-name: databases/foxpro/general
  7. Posting-frequency: monthly
  8.  
  9. [This is FAQ version 1.0.0.7 - Last Updated 05/09/94.  New sections or
  10. altered text are marked with ">" in the left hand column.  Please send
  11. all questions, comments, and whatnot to kcochran@nyx.cs.du.edu]
  12.  
  13. Welcome to comp.databases.xbase.fox.  This message is posted monthly,
  14. and can be found here, in news.answers, or you can receive a copy of
  15. this or any of the other comp.database.xbase.fox FAQ's by e-mailing me at
  16. kcochran@nyx.cs.du.edu.
  17.  
  18. This FAQ is available for anonymous FTP from rtfm.mit.edu.  For more
  19. information about the FAQ archive at rtfm.mit.edu, consult the newsgroup
  20. news.announce.newusers.
  21.  
  22. >This FAQ is also available for anonymous FTP from rahul.net   These
  23. >files are compressed, and located in the /pub/coneill directory.
  24. >***WARNING*** The FAQ's at rahul.net may or may not be the most current
  25. >versions, depending on exactly which day I send them in, and which
  26. >day you pick them up.
  27.  
  28. This message is split into the following sections:
  29.  
  30. 0.0 - What is an FAQ?
  31. 0.1 - What is comp.databases.xbase.fox?
  32. 0.2 - What is FoxPro?
  33. 0.2.1 - What are FoxBase, FoxBase+, and the rest?
  34. 0.3 - How do I get information?
  35. 0.3.1 - What other FAQ's are available?
  36.  
  37. 1.0 - I just brought FoxPro; now what?
  38. 1.1 - The FoxPro books.
  39. 1.2 - Third-Party books.
  40. 1.3 - Database and FoxPro magazines.
  41. 1.4 - MicroSoft technical support.
  42. 1.5 - FTP locations.
  43. 1.6 - Other locations for information.
  44.  
  45. 2.0 - What are the parts of FoxPro?
  46. 2.1 - The Developers kit.
  47. 2.2 - The Distribution kit.
  48. 2.3 - The Library Construction kit.
  49. 2.4 - The Connectivity kit.
  50.  
  51. 3.0 - I'm having a problem...
  52. 3.1 - Problems of "general" nature.
  53. 3.2 - Problems of "specific" nature.
  54. 3.3 - Problems with third-party add-ins.
  55. [Note:  Users have requested that we compile a "standard problem - solution"
  56.         list for inclusion in this section.  I'll be keeping that as a
  57.         seperate FAQ.]
  58.  
  59. [Note:  Sections are split with "******".]
  60.  
  61. Before we begin, I'd like to thank the following people not already
  62. mentioned in the FAQ for their assistance in putting this together:
  63.    1092143@MAINE.maine.edu (Donna Foster)
  64.    davec@wsti.demon.co.uk (David Churcher)
  65.    Garrett@heidi.demon.co.uk (Garrett Trant)
  66.    pgoudswa@etc.cln.bc.ca (Peter Goudswaard)
  67.    peace@world.std.com (Jeremy Stark)
  68.    OB71216@IBMH1.ORL.MMC.COM (Steve)
  69.    tdh@dweebus.telemax.com (Thomas D. Halter)
  70.    tonemb@mtfs.unit.no (Tone Merethe Berg)
  71.  
  72. ******
  73. 0.0 - What is an FAQ?
  74.       FAQ is short for "Frequently-asked-questions".  Over the course of
  75.       the net, especially in the technical areas, a lot of questions get
  76.       asked over and over and over ("How do I get my foo to bar in green
  77.       instead of red?").
  78.  
  79.       These questions get collected into a single message that is then
  80.       posted to the newsgroup at regular intervals (usually about once
  81.       a month).
  82.  
  83.       FAQ's also tend to have a lot of background information about the
  84.       newsgroup in question, information about the newsgroup, historical
  85.       persons important to the newsgroup, and I've even seen some that
  86.       have court cases in them.
  87.  
  88. ******
  89. 0.1 - What is comp.databases.xbase.fox?
  90.       comp.databases.xbase.fox (or c.d.x.f for short) is a newsgroup for
  91.       discussion about the Fox database management packages.  Technical
  92.       questions about Rushmore, the power tools, FoxBase, and other issues
  93.       are all relevant to c.d.x.f.
  94.  
  95.       General questions that relate specifically to FoxPro or the related
  96.       products (NetLib, dGE, etc) or technical questions about these items
  97.       are certainly relevant to the newsgroup.
  98.  
  99.       General questions about databases in general (I'm looking for a good
  100.       database package; How do I normalize my tables) should probably be
  101.       addressed in either comp.databases.xbase.misc or comp.databases.misc.
  102.       If you have a question of a general nature, you should also look
  103.       around the newsgroups list to see if there isn't a more relevant
  104.       group.
  105.  
  106.       c.d.x.f is not an advocacy group; please do not start discussions
  107.       about whether your Mac is better than the next guys IBM box.  Also,
  108.       you should avoid general slamming of products.  A conversation about
  109.       the differences between the FoxPro and Paradox screen builders would
  110.       be extremly informative; a post stating that "Paradox Sucks" is in
  111.       poor taste.
  112.  
  113. ******
  114. 0.2.1 - What are Foxbase, Foxbase+, and those other things?
  115.       The Fox database management packages are available for many
  116.       different operating systems and environments.  The various
  117.       packages are:
  118.  
  119.       Microsoft:
  120.          FoxPro 2.5 (DOS)
  121.          FoxPro 2.5 (Windows)
  122.          FoxPro 2.5 (Macintosh)
  123.          FoxPro 2.5 (Unix, to be released in 1994)
  124.  
  125.       Fox Software*:
  126.          FoxBASE+ (DOS)
  127.          FoxBASE+ (Macintosh)
  128.          FoxPro 1.1 (DOS)
  129.          FoxPro 2.0 (DOS)
  130.  
  131.       SCO (Santa Cruz Operation):
  132.          SCO FoxBASE+ (Unix)
  133.  
  134.       *Fox Software has been bought by Microsoft.  Their products are no
  135.        longer available, but are included here since many of their products
  136.        are still in use.
  137.  
  138. ******
  139. 0.3 - How do I get information?
  140.       This depends on what sort of information you need.  One of the best
  141.       places to get information is from the manuals.  If they don't give
  142.       you what you want, there are a wide variety of magazines, books,
  143.       FTP sites, and comp.* groups that may be able to provide you with
  144.       the information you need.
  145.  
  146. ******
  147. 0.3.1 - What other FAQ's are there?
  148.       You Say You Want A Revolution:
  149.          (FAQ #1, archived at rtfm.edu under databases/foxpro/general)
  150.          This FAQ contains information of a general nature about c.d.x.f
  151.          It also contains address information for Microsoft, third-party
  152.          books about the Fox database management products, how to get
  153.          information from Microsoft, compuserve, and information about
  154.          FTP.
  155.  
  156.       See Fox.  See Fox Run.  Run, Fox, Run:
  157.          (FAQ #2, archived at rtfm.edu under databases/foxpro/rushmore)
  158.          This FAQ contains information of both a general and a specific
  159.          nature about the Rushmore technology.
  160.  
  161.       Things Your Mamma Never Told You About:
  162.          This FAQ contains information about functions and commands in
  163.          FoxPro that "should" do something, but "don't", and those
  164.          commands that "shouldn't" do something, but "do".
  165.  
  166. ******
  167. 1.0 - I just brought FoxPro; now what?
  168.       The *FIRST THING TO DO* is to fill our your registration card,
  169.       and mail it off to Microsoft.  This will give you the ability
  170.       to call Microsoft Technical Support with your problems.
  171.  
  172.       Calling Microsoft support is a mixed blessing.  It may get your
  173.       question answered, but you may have no hair left by the time it
  174.       works.  Then again, MicroSoft support is _the place_ to make sure
  175.       that you are not working against a program bug.
  176.  
  177. ******
  178. 1.1 - The FoxPro books.
  179.       One of the best places to find information is within the FoxPro books
  180.       that you got when you brought your package.  The Language Reference
  181.       Manual is the first place you should look when a command doesn't work
  182.       the way you expected it to.
  183.  
  184.       The Developer's Guide also has a lot of information on things that they
  185.       don't really mention in the language reference.  If you are having
  186.       problems getting your procedures to work correctly in your screens,
  187.       try taking a look there.
  188.  
  189. ******
  190. 1.2 - Third-Party books.
  191.       There are many, many books on how to develop and program in FoxPro.
  192.  
  193.       Some of the ones you may find useful are:
  194.       [Note:  Your milage may vary.]
  195.  
  196.       peace@world.std.com (Jeremy Stark) recommends:
  197.       "FoxPro 2.5 Developing Full-Scale Applications For Windows"
  198.       Written by Nelson King, and published by MIS:Press.
  199.  
  200.       "It's actually a beginners book and includes sections on
  201.       table normalization, project planning, and other topics related
  202.       to the consulting end of database design."
  203.  
  204.       It comes with a disk, costs $34.95, and also has a cute fox on
  205.       the cover.
  206.  
  207.       pgoudswa@etc.cln.bc.ca (Peter Goudswaard) recommends:
  208.       "FoxPro 2.5 - Programmer's Reference" by John Hawkins,
  209.       Editor-In-Chief of Data-Based Advisor Magazine, published
  210.       by Que, ISBN 1-56529-210-3.
  211.  
  212.       "Programming FoxPro 2.5" by Miriam Liskin, by Ziff-Davis Press,
  213.       ISBN 1-56276-164-1.
  214.  
  215.       tonemb@mtfs.unit.no (Tone Merethe Berg) Recommends:
  216.       Using FoxPro 2.5 for Windows, by Lisa Slater and Steven Arnott.
  217.       ISBN 1-56529-002-X.
  218.       "This is an excellent book for people like me, starting close to
  219.        zero, as well as for some like me, getting closer to 'experienced'.
  220.        As for you guru's, I guess it isn't too bad, either."
  221.  
  222.       FoxPro 2.5 Advanced Developers Handbook.  Brady Publishing, 1993.
  223.       ISBN 0-13-325341-4.  According to the author, it includes
  224.       "undocumented secrets, strategies, and tips from the experts, and
  225.        is especially written for those developing applications for a
  226.        network.  Data security and corruption protection, as well as
  227.        error-handling, user-interfaces, UDF-creation and other programming
  228.        techniques are main chapters."
  229.  
  230. ******
  231. 1.3 - Database and FoxPro magazines.
  232.       In addition to the books available, there are several magazines that
  233.       deal with xbase products, and some that deal exclusivly with FoxPro.
  234.  
  235.       FoxTalk Magazine:
  236.       FoxTalk
  237.       Pinnacle Publishing, Inc.
  238.       PO Box 888
  239.       Kent, WA 98035-0888
  240.       COMPUSERVE Address: 72600,140
  241.       Editorial Hotline: (800) 788-1900
  242.       BBS (2400) (206) 251-6217
  243.       BBS (9600) (206) 251-6218
  244.  
  245.       As of March, 1993 the numbers for Pinnacle Publishing are:
  246.       Pinnacle Publishing
  247.       18000 72nd Avenue South Suite 217
  248.       Kent, WA  98032
  249.  
  250.       Shipping and Receiving:
  251.       18030 72nd Avenue South
  252.       Kent, WA  98032
  253.  
  254.       Mailing Address:
  255.       PO Box 888
  256.       Kent, WA  98035-0888
  257.  
  258.       Phone Numbers:
  259.       General Line:  (206) 251-1900
  260.          (Weekdays 8am - 5pm PACIFIC time)
  261.       Sales:  (800) 788-1900
  262.       Fax:  (206) 251-5057
  263.       Tech Support:  (206) 251-3513
  264.          (Weekdays 8am - 5pm PACIFIC time)
  265.       BBS:  (206) 251-6218 (9600 Baud)
  266.             (206) 251-6217 (2400 Baud)
  267.  
  268.       They can also be reached on Compuserve by GO PINNACLE.
  269.  
  270. ******
  271. 1.4 - Microsoft technical support.
  272.       Microsoft technical support is available from 6am to 6pm pacific
  273.       time monday through friday, except for holidays.  In the US, call:
  274.  
  275.       (206) 635-7191 (FoxPro/DOS and FoxPro/Windows)
  276.       (206) 635-7192 (FoxPro/Macintosh)
  277.  
  278.       In Canada, support engineers are available at (905) 568-3503.
  279.  
  280.       Microsoft FastTips is available 24 hours a day, 7 days a week at
  281.       (800) 936-4300 with a touch-tone phone.   You can receive automated
  282.       answers to common questions and problems, or access a library of
  283.       technical notes, all delivered by recording or fax.
  284.  
  285.  
  286.       Microsoft can also be reached via compuserve.  Their "wish line"
  287.       on the net is foxwish@microsoft.com
  288.  
  289. ******
  290. 1.5 - FTP locations.
  291.       You can FTP anonymously to microsoft.com, and look in the directory
  292.       /deskapps/fox/ for support and patch files, upgrade information, and
  293.       other information.  The IP address is 198.105.232.1
  294.  
  295.       There is also an FTP site at rahul.net, in the /pub/coneill/
  296.       directory.  The IP address is 192.160.13.1  This FTP site contains
  297.       lots of useful information, including GENSCRNX and GENMENUX.
  298.  
  299. ******
  300. 1.6 - Other sources of information.
  301.       COMPUSERVE:  At any ! prompt, type "go microsoft" to access the
  302.       Microsoft forums, "go mskb" to access the Microsoft Knowledge Base,
  303.       or "go foxforum" to access FoxPro specific information.
  304.  
  305.       There is an existing FoxPro mailing list:
  306.  
  307.       To subscribe to the FoxPro mailing list, send the following in a
  308.       mail message to fileserv@polarbear.rankin-inlet.nt.ca:
  309.  
  310.       JOIN FOXPRO-I
  311.       QUIT
  312.  
  313.       [Note: That's "I" as in "GHIJ", not "1" as in "1234".  You can
  314.       also get a digest version of the list by doing a JOIN FOXPRO-D
  315.       instead of JOIN FOXPRO-I.  The list is archived at rahul.net,
  316.       in the /pub/coneill directory.
  317.  
  318.       And there may be a second list forming:
  319.  
  320.          foxpro-l@ukanvm.cc.ukans.edu
  321. >
  322. >      If anybody has any additional information on mailing lists or
  323. >      FTP sites, please contact me.
  324.  
  325. ******
  326. 2.0 - What are the parts of FoxPro?
  327.       There are many different parts to FoxPro, even within FoxPro itself.
  328.       Just because you have a compiled application doesn't mean that it will
  329.       work correctly.  For example, if your application uses printer drivers,
  330.       then you will have to include genpd.app as part of your project.
  331.  
  332.       Some of the other external parts of FoxPro are:
  333.       genscrn.prg - Generates your .spr file from the screen database.
  334.       genmenu.prg - Generates your .mpr file from the menu database.
  335.       beautify.app - Used to beautify applications brought over from other
  336.          platforms.  It is not yet available for the DOS platform.
  337.       foxdoc.app - Documentation generator.  This is known as foxdoc.exe
  338.          in the DOS platform.
  339.       gengraph.app - Graph generator.
  340.       spellchk.app - Spell checker.
  341.       genxtab.prg - Generation cross-tabulations from a database.
  342.       transport.prg - Used to migrate applications across platforms.
  343.  
  344. ******
  345. 2.1 - The Developers kit.
  346.       This is the "best known" of the FoxPro parts.  This the set that
  347.       gives you the "command window", and allows you to create applications,
  348.       databases, compile them, etc.
  349.  
  350. ******
  351. 2.2 - The Distribution kit.
  352.       In order to run a FoxPro application, you have to have FoxPro, right?
  353.       Wrong.  Instead of forcing everybody to spend the $$$ to buy the
  354.       development kit just so they can run their accounting software, you
  355.       can purchase the Distribution Kit.
  356.  
  357.       The distribution kit allows you to distribute and run an application
  358.       without providing the full FoxPro interface (command window, filer,
  359.       etc).  This distribution is done ROYALTY-FREE.  Once you have brought
  360.       the distribution kit, and compiled your executable, you do not have
  361.       to pay MicroSoft anything in order to sell your application to
  362.       another person.
  363.  
  364.       Note that the Distribution Kit does not actually compile your
  365.       FoxPro code into machine language.  Instead, it produces an .EXE
  366.       file containing a copy of the FoxPro interpreter and your program
  367.       compiled into pseudo-code.
  368.  
  369. ******
  370. 2.3 - The Library Construction kit.
  371.       Found something that FoxPro won't do?  Want it to be able to do it?
  372.       Purchase the Library Construction kit, and teach FoxPro new tricks!
  373.  
  374.       The LCK allows you to write your own functions in C, and then link
  375.       them into FoxPro as a .plb file.  The functions have _NONE_ of the
  376.       limitations of .bin files (used by LOAD and CALL), and can take
  377.       full advantage of FoxPro's memory management, windowed i/o, and
  378.       other features.  You can even call FoxPro commands from within
  379.       your external function.
  380.  
  381.       The LCK covers DOS and Windows platforms (Windows files have the
  382.       extension .fll instead of .plb).  A C compiler is not included.
  383.       The supported C compilers are Microsoft C v8 and Watcom C v8.5.  It
  384.       is possible to use Borland C++ v3.1 to produce Windows .FLL files,
  385.       but this is not officially supported.
  386.  
  387.  
  388. ******
  389. 2.4 - The Connectivity kit.
  390.       What's that?  Human Resources has 10 years of information stored on
  391.       the server in SYBASE format, and they want you to analyze it?  With
  392.       the connectivity kit, this is no problem.  Just attach to the server,
  393.       log yourself into the database, and start analyzing.
  394.  
  395.       The connectivity kit comes in two "flavors".  DOS and Windows.
  396.       The DOS version is a .plb file that allows you to attach to Sybase
  397.       and Oracle servers.  No other servers are supported.  The Windows
  398.       .fll driver allows you to connect via ODBC to a wide range of
  399.       database servers.
  400.  
  401.       In order to use the Windows version, you must also buy the ODBC
  402.       Desktop Drivers from Microsoft.
  403.  
  404.       Data access is performed by using a CK function to register yourself
  405.       to your data source, and then using other CK functions to pass and
  406.       retrieve SQL statements to the server.
  407.  
  408. ******
  409. 3.0 - I'm having a problem...
  410.       Join the club.  Fortunatly, the kind folks of c.d.x.f will be more
  411.       than happy to help solve your FoxPro problems.
  412.  
  413.       SOME RULES TO MAKE YOUR LIFE EASIER:
  414.  
  415.       (1)Please be sure to mention what VERSION and ENVIRONMENT of Fox*
  416.          you are using.  Some of the things you can do in FoxPro 2.5
  417.          will not work at all under FoxBase+, or on the Unix flavors.
  418.  
  419.       (2)Please be sure to mention anything odd that you are doing.
  420.          Specifically, .plb files and SQL tends to cause "strange"
  421.          things to happen.  If you have the files in a project, please
  422.          be sure to mention that.  If you are using the distribution kit,
  423.          and the problem only appears when you are running it under the
  424.          distribution kit, please mention that.
  425.  
  426.          IF YOU ARE MIGRATING AN APPLICATION FROM ANOTHER XBASE PRODUCT,
  427.          MENTION IT!
  428.  
  429.       (3)Do _NOT_ end your question with "Please e-mail me the answer,
  430.          as I don't read this newsgroup".  I mention this for a couple
  431.          of reasons:
  432.          
  433.          (1)Not everybody has the ability to cc: people on postings.
  434.             The problem you are having may be the same problem that
  435.             many other people are having.
  436.  
  437.          (2)The problem that I have next week is something that you
  438.             might be able to solve for me in an instant.  I don't think
  439.             it's really fair for you to get help from us if we have no
  440.             chance of getting help from you.
  441.  
  442. ******
  443. 3.1 - Problems of "general" nature.
  444.       These problems are generally of a "how do I..." nature, and are probably
  445.       most quickly solved by reading the manual.  I cannot emphasis enough
  446.       that the manuals and on-line help should be your first defense against
  447.       problems.
  448.   
  449.       For example, we recently had a poster ask "how do I generate a random
  450.       number between x and y?"  This problem can be solved by looking at
  451.       the RAND() function in the Language Reference Manual.
  452.  
  453. ******
  454. 3.2 - Problems of "specific" nature.
  455.       If you've got specific problems, please be sure provide enough detail
  456.       with your post to allow us to help you.  Code samples are always
  457.       nice, as is a short (or long) description of what it is you are
  458.       trying to do.  If you have databases linked with SET RELATION, please
  459.       be sure to mention this.
  460.  
  461. ******
  462. 3.3 - Problems with third-party add-ins.
  463.       Probably the best place to solve problems with .plb files is with
  464.       the company that produces it.  But you may be able to get better
  465.       response by fishing in c.d.x.f
  466. -- 
  467. =kcochran@nyx.cs.du.edu | B(0-4) c- d- e++ f- g++ k(+) m r(-) s++(+) t | TSAKC=
  468. =My thoughts, my posts, my ideas, my responsibility, my beer, my pizza.  OK???=
  469. =                  "Let's get one thing straight.  I'm not."                  =
  470.  
  471.